﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using WpfUMLTry1;

namespace WpfUMLTry1.View
{
    /// <summary>
    /// Interaction logic for InTheTown.xaml
    /// </summary>
    public partial class InTheTown : Page
    {
        private Model.gameModel _model;
        public InTheTown(Model.gameModel model)
        {
            InitializeComponent();
            _model = model;
        }

        private void RestButton_Click(object sender, RoutedEventArgs e)
        {

            InfoPanel.Text += _model.RestInTheInn();
        }

        private void GoToForest_Click(object sender, RoutedEventArgs e)
        {
            _model.GoToTheForest();
            //InfoPanel.Text += "You find some adventure\n";
        }

        private void FollowTheSign_Click(object sender, RoutedEventArgs e)
        {
            _model.followTheSigns();
        }
    }
}
